package com.library.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户点赞关联
 * </p>
 *
 * @author ccl
 * @since 2024-10-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="RUserLike对象", description="用户点赞关联")
public class RUserLike extends Model<RUserLike> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "资源id")
    private String resourceId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "1-点赞 2-推荐")
    private Integer type;

    @ApiModelProperty(value = "点评类型 1-推荐 2-一般 3-不行")
    private Integer commentType;

    @TableField(exist = false)
    @ApiModelProperty(value = "城市")
    private String city;

    @TableField(exist = false)
    @ApiModelProperty(value = "手机号")
    private String mobile;

    @TableField(exist = false)
    @ApiModelProperty(value = "资源名称")
    private String resourceName;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
